@import "./vars";

body {
  padding: 0;
  margin: 0;
  font-family: $default-font;
  background-color: grey;
}

div {
  display: block;
}

.post {
  margin-top: 1rem;
  @import "./asciidoc";
}

.container {
  margin: 0 auto;
  max-width: 800px;
  padding-left: 32px;
  padding-right: 32px;
  min-height: 100vh;
  background-color: white;
}

.shadow {
  border: 1px solid #e6e6e6;
     -moz-box-shadow: 0 1px 4px #e0e0dc;
  -webkit-box-shadow: 0 1px 4px #e0e0dc;
          box-shadow: 0 1px 4px #e0e0dc;
}

.nav {
  border-bottom: 1px solid $border-gray;
  .navbar-menu,
  .navbar-start {
    align-items: stretch;
    display: flex;
  }

  .navbar-menu {
    flex-grow: 1;
    flex-shrink: 0;
  }

  .navbar-start {
    justify-content: flex-start;
  }

  .navbar-item,
  .navbar-logo {
    align-items: center;
    display: flex;
    flex-grow: 0;
    flex-shrink: 0;
    color: black;
    line-height: 1.5;
    padding: .5rem 1rem;
    position: relative;
    text-decoration: none;
    &:hover {
      text-decoration: underline dotted darkgray;
    }
  }
  .navbar-logo {
    padding-left: 0rem;
    img {
      height: 40px;
    }
  }
}

.post-item {
  margin: 0;
  padding: 1rem 1.5rem;
  border-left: 1px dashed $border-gray;
  &:hover {
    border-left: 4px solid green;
    background-color: $background-lightgray;
  }
  .title {
    margin: .25rem 0;
    font-size: 1.5rem;
    a {
      text-decoration: none;
      color: black;
      &:hover {
        text-decoration: underline dotted darkgray;
      }
    }
  }
  .date {
    color: darkgray;
    font-size: .9rem;
  }
}

.tag {
  margin: 0, .5rem;
  padding: 0 .5rem 0 .25rem;
  border-radius: 4px;
  border: 1px solid #c3e6cb;
  background-color: #d4edda;
  color: #155724;
  font-size: 0.8rem;
  text-decoration: none;
  .fa {
    color: green;
  }
}

.katex {
  font-size: 1rem;
}
